package com.suke.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 统计总数实体
 *
 * @author Li Sipeng
 * @version 4.1 on   2022-11-28 9:23
 *
 *
CREATE TABLE `tb_assets_total` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`total_assets` decimal(15,2) DEFAULT NULL COMMENT '总产值',
`total_investment` decimal(15,2) DEFAULT NULL COMMENT '总投资',
`total_net_profit` decimal(15,2) DEFAULT NULL COMMENT '总净利',
`total_revenue` decimal(15,2) DEFAULT NULL COMMENT '总税收',
`site_id` int(11) DEFAULT NULL COMMENT '所属工地',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='工地资产统计表'
 *
 */

@TableName("tb_assets_total")
public class AssetsTotal {
    @TableId(type= IdType.AUTO)  //该列主键生成策略: 自增
    private Integer id ;
    private Double totalAssets;  //总产值
    private Double totalInvestment;  //总投资
    private Double totalNetProfit;  //总净利
    private Double totalRevenue;  //总税收
    private Integer siteId;  //所属工地

    @Override
    public String toString() {
        return "AssetsTotal{" +
                "id=" + id +
                ", totalAssets=" + totalAssets +
                ", totalInvestment=" + totalInvestment +
                ", totalNetProfit=" + totalNetProfit +
                ", totalRevenue=" + totalRevenue +
                ", siteId=" + siteId +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Double getTotalAssets() {
        return totalAssets;
    }

    public void setTotalAssets(Double totalAssets) {
        this.totalAssets = totalAssets;
    }

    public Double getTotalInvestment() {
        return totalInvestment;
    }

    public void setTotalInvestment(Double totalInvestment) {
        this.totalInvestment = totalInvestment;
    }

    public Double getTotalNetProfit() {
        return totalNetProfit;
    }

    public void setTotalNetProfit(Double totalNetProfit) {
        this.totalNetProfit = totalNetProfit;
    }

    public Double getTotalRevenue() {
        return totalRevenue;
    }

    public void setTotalRevenue(Double totalRevenue) {
        this.totalRevenue = totalRevenue;
    }

    public Integer getSiteId() {
        return siteId;
    }

    public void setSiteId(Integer siteId) {
        this.siteId = siteId;
    }
}
